home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 015a / drvpad.zip / README < prev   
Text File  |  1993-04-04  |  4KB  |  100 lines

  1.  
  2.  
  3.  
  4.     DRIVEPAD.SYS -- Air drives for DOS
  5.  
  6.  
  7. The problem:
  8.  
  9. It is always unpleasant when you have to alter your configuration in ways
  10. which cause drive letters to change. For example, if you have a SCSI host
  11. adapter, you can freely add and subtract external drives, but this causes
  12. drive letters which follow the SCSI system to change. It would be nice to
  13. reserve a block of drive letters for use by the SCSI subsystem. This would
  14. allow you to keep constant the drive letters which might follow it.
  15.  
  16. It is awkward to have to set up different config.sys and other configuration
  17. files for systems which are similar but which have different numbers of hard
  18. drives. Again, it is desirable to be able to create conditional `air drives'
  19. which pad the drive numbering process so that all the systems appear to have
  20. the same number of drives.
  21.  
  22. For networking systems, it would be useful to be able to pad the hardware
  23. drive numbering so that the network drives begin at the same point for all
  24. systems in the network.
  25.  
  26. If you use a configuration management utility, it can be a royal pain if you
  27. skip a driver in certain configurations, again because of the resulting
  28. change in drive lettering.
  29.  
  30. One man's solution:
  31.  
  32. DRIVEPAD is a tiny null block device. It is placed in config.sys with a
  33. single letter (A-Z) as its argument. It compares the argument letter with the
  34. `next drive' parameter passed to it by DOS during initialization and exits if
  35. the next drive letter is greater than or equal to the argument. Otherwise, it
  36. installs itself as enough drives to match the argument letter. It works only
  37. on DOS version 3.0 and greater.
  38.  
  39. Example:
  40.  
  41.     device=drivepad.sys g
  42.     device=ramdrive.sys
  43.  
  44. will force the system to allocate drive letters through G: before loading
  45. ramdrive.sys, thus the ram disk will always be H:.
  46.  
  47. Note that there is one kind of configuration which cannot be supported by
  48. drivepad.sys alone: if you have two BIOS drives and the C drive has extended
  49. volumes, removing the D drive will cause drive letters to change. Obviously,
  50. removing the C drive will also have this effect. For this reason, if you have
  51. two BIOS drives, either use a driver with the D drive and not the BIOS, or
  52. make sure the C drive is a single-volume drive.
  53.  
  54. Also, drivepad.sys cannot take away previously installed drives, so it will
  55. complain if the argument drive letter is less than the last-allocated drive
  56. letter. In other words, if drives a-f already exist, the line
  57. `device=drivepad.sys e' is bogus, but `device=drivepad.sys f' is OK.
  58.  
  59. Some technical details:
  60.  
  61. In terms of driver commands, we do the following:
  62.  
  63. - Device bits:
  64.     Bit 15 clear, for block device
  65.     Bit 13 set, for non-IBM disk
  66.     --all others are clear
  67.  
  68. - Init: do parameter checking, exit or install.
  69.  
  70. - Media Check: returns `not changed' or 1.
  71.  
  72. - Build BIOS Parameter Block: returns a pointer to the following data table:
  73.     #bytes Value
  74.     2 512 bytes per sector (standard DOS)
  75.     1 4 sectors per chunk (standard HDD)
  76.     2 1 reserved sectors (incl. boot sector)
  77.     1 2 FATs (standard)
  78.     2 256 Max root entries (standard HDD)
  79.     2 65450 total sectors (imaginary 770/5/17 drive)
  80.     1 0xf8 media id byte (HDD)
  81.     2 64 sectors per FAT (max size)
  82.     2 17 sectors per track (standard mfm)
  83.     2 5 number of heads
  84.     4 0 hidden sectors
  85.     4 0 if <total sectors> == 0, total sectors
  86.  
  87. - Read, Write, WriteVfy: return `Drive Not Ready'
  88.  
  89. - All other commands return `Unknown Command'
  90.  
  91. In closing:
  92.  
  93. This program is my property, but you are welcome to use it. You are not
  94. authorized to sell it or to modify it. If you have comments or criticisms of
  95. drivepad.sys, or if you run into trouble setting it up, please contact me via
  96. e-mail and I will try to help.
  97.  
  98.     Greg Shenaut 71061,1324
  99.     gkshenaut@ucdavis.edu
  100.